import React, { useState } from 'react';
import { BrowserRouter as Router } from 'react-router-dom';
import RouterBeforEach from './components/RouterBeforEach';
import RouterView from './router';
import zhCN from 'antd/es/locale/zh_CN';
import { ConfigProvider } from 'antd';
const App = () => {
  return (
    <div>
      <ConfigProvider locale={zhCN}>
        <Router>
          <RouterBeforEach>
            <RouterView></RouterView>
          </RouterBeforEach>
        </Router>
      </ConfigProvider>
    </div>
  );
};

export default App;
